#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int leap_year(int year)
{
	return (year % 4 == 0) && (year % 100 != 0) || year % 400 == 0;
}
int main()
{
	int year = 0;
	int count = 0;
	for (year = 1000; year <= 2000; year++)
	{
		if (leap_year(year))
		{
			printf("%d ", year);
			count++;
		}
	}
	printf("\ncount = %d", count);
	return 0;
}